// Created by Joe on 2017/6/10.

var app = angular.module('icity', ['ngRoute', 'ins']);

app.config(
    [
        '$routeProvider',
        function ($routeProvider) {
            $routeProvider.when(
                '/home',
                {templateUrl: 'views/home.html', controller: 'HomeController'}
            ).when(
                '/profile',
                {templateUrl: 'views/profile.html', controller: 'ProfileController'}
            ).when(
                '/exit-entry',
                {templateUrl: 'views/exit-entry.html', controller: 'ExitEntryController'}
            ).when(
                '/reserved-fund',
                {templateUrl: 'views/reserved-fund.html', controller: 'ReservedFundController'}
            ).when(
                '/driving-school',
                {templateUrl: 'views/driving-school.html', controller: 'DrivingSchoolController'}
            ).when(
                '/people-livelihood',
                {templateUrl: 'views/people-livelihood.html', controller: 'PeopleLivelihoodController'}
            ).when(
                '/news',
                {templateUrl: 'views/news.html', controller: 'NewsController'}
            ).when(
                '/weather',
                {templateUrl: 'views/weather.html', controller: 'WeatherController'}
            ).when(
                '/social-security',
                {templateUrl: 'views/social-security.html', controller: 'SocialSecurityController'}
            ).when(
                '/affair-query',
                {templateUrl: 'views/affair-query.html', controller: 'AffairQueryController'}
            ).when(
                '/heating-steward',
                {templateUrl: 'views/heating-steward.html', controller: 'HeatingStewardController'}
            ).when(
                '/hotline',
                {templateUrl: 'views/hotline.html', controller: 'HotlineController'}
            ).when(
                '/vehicle-violation', {
                    templateUrl: 'views/vehicle-violation.html',
                    controller: 'VehicleViolationController'
                }
            ).when(
                '/affair-guidance', {templateUrl: 'views/affair-guidance.html', controller: 'AffairGuidanceController'}
            ).when(
                '/affair-appointment', {
                    templateUrl: 'views/affair-appointment.html',
                    controller: 'AffairAppointmentController'
                }
            ).otherwise({
                redirectTo: '/home'
            });
        }
    ]
);